import pandas as pd
import plotly.express as px

import config
import load_fred
import pca_index

import pandas_datareader

DATA_DIR = config.DATA_DIR

import warnings
warnings.filterwarnings("ignore")

S&P 500#

df = pandas_datareader.get_data_fred('SP500', start='1970-01-01')

fig = px.line(df)
fig.show()

PCA Index Dashboard Examples#

This script was last run at 2024-03-08 10:13:32.413681+00:00 (UTC)
In US/Central Time, this is 2024-03-08 04:13:32.413681-06:00
../../_images/d4b567fc7bc0f1c4eaa91f3cbbd8bbfbde174d3e4e7834a32ed5ded667fd2abb.png
../../_images/4e573c223609996c0c62be30a8bd2b2b505ad59999495639de2919c7e6cc681d.png